package biz.core.dao.ibatisImpl;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import biz.core.dao.UserDAO;
import biz.core.domain.User;


public class UserDAOIbatisImpl extends SqlMapClientDaoSupport implements UserDAO {
	   public List<User> findAll() {
           return getSqlMapClientTemplate().queryForList("MyUser.selectAll");
    }
	   
	   public User findById(int id){
		   return (User) getSqlMapClientTemplate().queryForObject("MyUser.selectById",id);
	   }

}
